import { IConfigFromPlugins } from '@@/core/pluginConfig';
type RouteType = IConfigFromPlugins['routes'];

const routes: RouteType = [
  {
    path: '/',
    redirect: '/index',
  },
  {
    name: '首页',
    path: '/index',
    component: './Index',
  },
  {
    name: '客户管理',
    path: '/customer',
    routes: [
      {
        name: '客户档案',
        path: 'customer',
        component: './Customer',
      },
      {
        name: '拜访记录',
        path: 'visit',
        component: './Visit',
      },
    ],
  },
  {
    name: '养修预约',
    path: '/business',
    component: './Business',
  },
  {
    name: '套餐审核',
    path: '/setmeal',
    component: './Setmeal',
  },
  {
    name: '流程管理',
    path: '/flow',
    component: './Flow',
  },
  {
    name: '系统管理',
    path: '/system',
    component: './System',
  },
  {
    name: '系统监控',
    path: '/monitor',
    component: './Monitor',
  },
  {
    name: '系统工具',
    path: '/tool',
    component: './ToolView',
  },
  {
    name: '报表',
    path: '/report',
    component: './Report',
  },
  {
    name: 'E店邦官网',
    path: '/frontend',
    component: './Frontend',
  },
  {
    path: '/login',
    component: './Login',
    // 不展示顶栏
    headerRender: false,
    // 不展示菜单
    menuRender: false,
    // 不展示菜单顶栏
    menuHeaderRender: false,
  },
];
export default routes;
